package idea.mybatis.db;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by Timothy on 2017/3/29.
 */
@MapperScan("idea.mybatis.db.mapper*")
@ImportResource(locations = { "classpath:generator_web_db.xml" })
@SpringBootApplication
public class Application {
	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(Application.class);
		app.setBannerMode(Banner.Mode.OFF);
		app.run(args);
		// SpringApplication.run(Application.class, args);
	}
}
